package swu.cx.learning_10_17

import android.graphics.Color
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        tabBar.itemList = arrayOf(
            itemModel(R.drawable.home,R.drawable.home_selected,"主页",Color.BLACK,Color.RED,true),
            itemModel(R.drawable.video,R.drawable.video_selected,"视频",Color.BLACK,Color.RED,false),
            itemModel(R.drawable.circle,R.drawable.circle_selected,"朋友圈",Color.BLACK,Color.RED,false),
            itemModel(R.drawable.me,R.drawable.me_selected,"我",Color.BLACK,Color.RED,false)
        )

    }
}